| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ThreadWrapper.h
1 // ThreadWrapper.h
3 //
5
6 namespace nkAstraeus::nkTasksWrap
7 {
11 class ThreadWrapper final
12 {
13 public :
14
15 // Env
22 static void updateEnvironment (nkScripts::Environment* env, LogManager* targetLogManager) ;
23
24 // Callbacks
25 // Constructor, destructor
37 static void* constructor (LogManager* logManager, const nkScripts::DataStack& stack) ;
43 static void destructor (void* toDestroy) ;
44
45 // Threading
56 static nkScripts::OutputValue addTask (const nkScripts::DataStack& stack) ;
67 static nkScripts::OutputValue releaseTaskRef (const nkScripts::DataStack& stack) ;
78 static nkScripts::OutputValue run (const nkScripts::DataStack& stack) ;
89 static nkScripts::OutputValue askAbort (const nkScripts::DataStack& stack) ;
100 static nkScripts::OutputValue join (const nkScripts::DataStack& stack) ;
111 static nkScripts::OutputValue askAbortAndJoin (const nkScripts::DataStack& stack) ;
112 // Utils for the thread env
123 static nkScripts::OutputValue runScript (const nkScripts::DataStack& stack) ;
124 } ;
125 }
nkAstraeus::nkTasksWrap::ThreadWrapper
Wraps a nkAstraeus::lua::nkTasksWrap::LuaThread and offers functions for use in scripting.
Definition: ThreadWrapper.h:12
nkAstraeus::nkTasksWrap
Encompasses the wrapping of nkTasks for scripting.
Definition: Constants.h:7
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::nkTasksWrap::ThreadWrapper::addTask
static nkScripts::OutputValue addTask(const nkScripts::DataStack &stack)
nkAstraeus::nkTasksWrap::ThreadWrapper::runScript
static nkScripts::OutputValue runScript(const nkScripts::DataStack &stack)
nkAstraeus::nkTasksWrap::ThreadWrapper::askAbortAndJoin
static nkScripts::OutputValue askAbortAndJoin(const nkScripts::DataStack &stack)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::nkTasksWrap::ThreadWrapper::destructor
static void destructor(void *toDestroy)
nkAstraeus::nkTasksWrap::ThreadWrapper::askAbort
static nkScripts::OutputValue askAbort(const nkScripts::DataStack &stack)
nkAstraeus::nkTasksWrap::ThreadWrapper::run
static nkScripts::OutputValue run(const nkScripts::DataStack &stack)
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::LogManager
Responsible for logging all messages from the component. By registering a nkLog::Logger inside,...
Definition: LogManager.h:13
nkAstraeus::nkTasksWrap::ThreadWrapper::releaseTaskRef
static nkScripts::OutputValue releaseTaskRef(const nkScripts::DataStack &stack)
nkAstraeus::nkTasksWrap::ThreadWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env, LogManager *targetLogManager)
nkAstraeus::nkTasksWrap::ThreadWrapper::constructor
static void * constructor(LogManager *logManager, const nkScripts::DataStack &stack)
nkAstraeus::nkTasksWrap::ThreadWrapper::join
static nkScripts::OutputValue join(const nkScripts::DataStack &stack)